/**
 * 全局 Loading
 * @author Zeon scplay@gmail.com
 * @date 2019/5/16
 * @copyright Created by Panxsoft.
 */

export default {
	namespaced: true,
	state: {
		show: false, // 是否显示
	},
	mutations: {
		show(state) {
			state.show = true;
		},

		hide(state) {
      state.show = false;
    },

		toggle(state) {
			state.show = !state.show;
		},
	}
};
